<?php

// use DB;
use Illuminate\Database\Seeder;

class usersSeeder extends Seeder {
	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run() {
		$data = [];
		for ($i = 0; $i < 50; $i++) {
			$tmp['username'] = str_random(15);
			$tmp['password'] = str_random(15);
			$tmp['email'] = str_random(8) . '@163.com';
			$tmp['phone'] = '187' . rand(1000, 9999) . rand(1000, 9999);
			$tmp['face'] = '/uploads/default.jpg';
			$tmp['status'] = '1';
			$tmp['auth'] = '1';
			$tmp['created_at'] = date('Y-m-d H:i:s');
			$tmp['updated_at'] = date('Y-m-d H:i:s');
			$data[] = $tmp;
		}
		DB::table('users')->insert($data);
	}
}
